package com.sharp.core.math;

public class AABB {
	Vec3 min;
	Vec3 max;
	
	public AABB(int width, int height, int depth) {
		min = new Vec3(0, 0, 0);
		max = new Vec3(width, height, depth);
	}
	
	public Vec3 getMin() {
		return min;
	}
	public void setMin(Vec3 min) {
		this.min = min;
	}
	public Vec3 getMax() {
		return max;
	}
	public void setMax(Vec3 max) {
		this.max = max;
	}
	
	public void moveTo(Vec3 to) {
		max.subtract(min);
		min = to;
		max.add(min); 
	}
}
